package sprinklerbee.dao;

import java.util.List;


import sprinklerbee.model.Group;
import sprinklerbee.model.Sprinkler;

public interface SprinklerDAO {
	public void addSprinkler(Sprinkler sprinkler) throws RuntimeException;
	public void deleteSprinklerById(Sprinkler sprinkler) throws RuntimeException;
	public boolean updateSprinklerStatusById(Sprinkler sprinkler,String status) throws RuntimeException;
	public boolean updateSprinklerStatusByGroup(Group group,String status) throws RuntimeException;
	public Sprinkler querySprinklerStatus(String name);
	public Sprinkler querySprinklerById(int id);
	public Sprinkler querySprinklerByName(String name);
	public Group queryGroupByName(String name);
	public List<Sprinkler> queryAllSprinklers();
	public List<Sprinkler> queryAllDisabledSprinklers();
	public List<Sprinkler> querySprinklersByGroupId(int groupId) ;
}
